#ifndef NETWORK_H_
#define NETWORK_H_

#include "stdint.h"
#include "stm32f4xx.h"

#define _NETWORK_BUF_SIZE		1024
#define _NETWORK_MAX_PACK_SIZE	512

typedef struct sNetworkBufStruct
{
	uint8_t buf[_NETWORK_BUF_SIZE];
	uint16_t leng;
	uint8_t state;
}sNetworkBufStruct;

extern sNetworkBufStruct networkBufStruct;

void NetWorkInsertReplyReq(uint8_t * data, uint8_t leng);
void NetWorkTask(void *pvParametes);

#endif
